<? 
	#This is a libraries of common PHP functions to make life as a developer easier
	#this is meant for developers to build on. A foundation;
	#This is OOP based
	#
	#so in your php it would look like this
	# <?php actinium->function($your_varible);
class actinium {
		#
		#This is a function to call a persistant mongo connection
		#	You just send your server information. It will confirm your mongo connection
		#	Local host for mongo would be set as
		function set_mongo($server){
			for ($i=0; $i<1000; $i++){
				$m = new Mongo($server, array("persist" => "x"));
				}
			if(!$m){
				echo "CHECK YOUR MONGO CONNECTION!";
			}
			#If you would like to have it echo back that it connected to your mongo
			#REMOVE THE FOLLOWING HASHES
			# else {echo "YOUR MONGO ROCKS!";}
		}
		# check_post is designed to check your $_POST varibles. You choose the in and the out varibles.
		#	 
		#	 $in = to what you are checking from your from:: EX: $in="username";
		#		it goes into the function as $_POST[]
		#	 $out = is what the varible is set to. So in the usercase:EXAMPLE:$username
		# so in action it looks like this;
		# actinium->check_post('')
		function confirm_post($v1,$v2){
			if(isset($_POST[$v1])){
				$v2 = $_POST[$v1];
			}
			return $v2;
		}
		
}